package com.tidu.dataSource;

import com.tidu.config.DataSourceConfig;

public class ConfigLoader {
    public static DataSourceConfig loadDataSourceConfig(String url, String username,String password, String driverClassName) {
            DataSourceConfig dataSourceConfig = new DataSourceConfig();
            dataSourceConfig.setUrl(url);
            dataSourceConfig.setUsername(username);
            dataSourceConfig.setPassword(password);
            dataSourceConfig.setDriverClassName(driverClassName);
            return dataSourceConfig;
    }
}
